package org.grow.space.dao;

import org.grow.space.entity.UserInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: xwg
 * @CreateDate: 2021/9/22
 */

@Repository
public interface UserInfoDao extends JpaRepository<UserInfo,Integer> {
//    dfsafdsf
//    fdsafdsafds
//    fdsa发的撒
//    数据访问层框架  1.简单的crud   2.复杂查询
//    querydsl 支持 补全 jpa

    List<UserInfo> findByNicknameLike(String nickname);
//    select * from userinfo where nickname like "???"
    UserInfo findByUsername(String username);

}
